package view.util;

import view.FenetrePrincipale;

/**
 *
 * @author BACQ Justine et SACRE Sauvane
 */

public abstract class BackgroundThread extends Thread {
    @Override
    public void run() {
        FenetrePrincipale fp = FenetrePrincipale.getIntstance();
        fp.showProgress();
        try{
            doInBackground();
        }finally{
            fp.hideProgress();
        }
    }
    
    public abstract void doInBackground();
}
